﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="User.aspx.cs" Inherits="Admin_User" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
</asp:Content>

        <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <table>
    <tr>
        <td style="color:Red;font-size:30px" align="center"><p style="width: 708px">Danh sách người dùng</p></td>
        <td>
            <asp:Button ID="btnAddNewUser" runat="server" Text="Add new" Width="68px" 
                onclick="btnAddNewUser_Click" />
            
        </td>
    </tr>
    <tr>
        <td align="center" >
            <asp:Label ID="Label1" runat="server"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="ddlRole" runat="server" Height="16px" Width="84px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td colspan="2">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
         BackColor="White" 
                BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                Height="252px" Width="821px" style="margin-right: 0px">
        <Columns>
            <asp:BoundField DataField="userID" HeaderText="User ID" />
            <asp:BoundField DataField="userName" HeaderText="User Name" />
            <asp:BoundField DataField="fullName" HeaderText="Full Name" />
            <asp:BoundField DataField="birthday" HeaderText="Birth Day" />
            <asp:BoundField DataField="gender" HeaderText="Gender" />
            <asp:BoundField DataField="email" HeaderText="Email" />
            <asp:BoundField DataField="userAddress" HeaderText="Address" />
            <asp:BoundField DataField="phoneNumber" HeaderText="Phone Number" />
            <asp:BoundField DataField="creditCard" HeaderText="Credit Card" />
            <asp:BoundField DataField="cardNumber" HeaderText="Card Number" />
            <asp:BoundField DataField="reward" HeaderText="Reward" />
            <asp:BoundField DataField="roleName" HeaderText="RoleID" />
            <asp:TemplateField HeaderText="Thao tac">
                <ItemTemplate>
                    <table >
                        <tr>
                            <td>
                                <asp:LinkButton ID="lbEdit" runat="server"
                                    CommandArgument='<%# Eval("userID","{0}") %>' onclick="lbEdit_Click" 
                                    CommandName="Select">Sửa</asp:LinkButton>
                            </td>
                            <td>
                                <asp:LinkButton ID="lbDelete" runat="server" 
                                    CommandArgument='<%# Eval("userID","{0}") %>' onclick="lbDelete_Click" 
                                    CommandName="Select" onclientclick="return confirm('Are you sure?');">Xóa</asp:LinkButton>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
        <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
        <RowStyle BackColor="White" ForeColor="#330099" />
        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        <SortedAscendingCellStyle BackColor="#FEFCEB" />
        <SortedAscendingHeaderStyle BackColor="#AF0101" />
        <SortedDescendingCellStyle BackColor="#F6F0C0" />
        <SortedDescendingHeaderStyle BackColor="#7E0000" />
    </asp:GridView>
    </td>
    </tr>
</table>

</asp:Content>
        

